<?php


class tx_zlib_viewhelper_translate extends tx_zlib_abstract_viewhelper
{

	/**
	 * Generates a translation of a text string
	 *
	 * @param string $str The text to translate
	 * @return string The translated text
	 */
	public function translate($str)
	{
		$LL = $this->getPi()->pi_getLL($str);
		return empty($LL) ? '(('.$str.'))' : $LL ;
	}

}


if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zlib/views/helpers/class.tx_zlib_viewhelper_translate.php'])	{
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zlib/views/helpers/class.tx_zlib_viewhelper_translate.php']);
}
